Technote TE 18 | May 1987 |
The following code can be used to force the insertion point to appear at the left of the following line when it is positioned at the end of a line; in MPW Pascal:
TEDeactivate(tH); tH^^.clikStuff := 255; {position caret on left} TESetSelect(eolcharpos, eolcharpos, tH); {ambiguous point} TEActivate(tH);
In MPW C:
TEDeactivate(tH); (**tH).clikStuff = 255; /*position caret on left*/ TESetSelect(eolcharpos, eolcharpos, tH); /*ambiguous point*/ TEActivate(tH);
If you want to ensure that the caret is on the right side (to which it normally
defaults) then substitute a zero for the 255.
Further Reference:
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help